import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class User {
  @PrimaryGeneratedColumn({ type: 'int' })
  user_id: number;
  @Column({ type: 'varchar', length: 64 })
  user_name: string;
  @Column({ type: 'varchar', length: 20 })
  user_password: string;
  @Column({ type: 'varchar', length: 20 })
  user_nickname: string;
  @Column({ type: 'varchar', default: '' })
  user_remark: string;
  @Column({ type: 'varchar', default: '' })
  user_image: string;
  @Column({ type: 'tinyint', default: 1 })
  user_status: number;
  @Column({ type: 'int' })
  user_creationTime: number;
}
